﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using OgilvyOne.DALFactory;

namespace OgilvyOne.BLL
{
    public class RolePopedomBll
    {
        /// <summary>
        /// 保存角色权限
        /// </summary>
        /// <param name="rid"></param>
        /// <param name="popedomlist"></param>
        public void saveRolePopedom(int rid, IList popedomlist)
        {
            RolePopedomFactory.create().saveRolePopedom(rid, popedomlist);
        }

        public Hashtable getRolePopedomList(int rid)
        {
            return RolePopedomFactory.create().getUserPopedomMenu(rid.ToString());
        }

        /// <summary>
        /// 所有内容栏目
        /// </summary>
        /// <returns></returns>
        public IList getColumnList()
        {
            return RolePopedomFactory.create().getColumnList();
        }
        /// <summary>
        /// 所有系统栏目
        /// </summary>
        /// <returns></returns>
        public IList getSysColumnList()
        {
            return RolePopedomFactory.create().getSysColumnList();
        }
    }
}
